package com.ophiux.abstracts;

public class WechatPay extends AbstractPay {


    @Override
    public boolean support(String payType) {
        System.out.println("wechat".equals(payType));
        return "wechat".equals(payType);
    }



    @Override
    public String pay(String payType) {
        if(!support(payType)){
            return "支付方式错误";
        }
        return "微信支付";
    }
}
